-- GENERATED SPELL FOR [Sawtooth Snapper] --


function spell0_1087(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1087', 8000, 1)
end

function Sorts_1087(pUnit, Event)
local choix_sorts_1087 = math.random(0, 0)
if choix_sorts_1087 == 0 then
pUnit:RegisterEvent('spell0_1087', 1, 1)
end
end

function mob1087_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1087', math.random(1500, 3000), 1)
end

function mob1087_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1087_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1087_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1087, 1, 'mob1087_Action')
RegisterUnitEvent(1087, 2, 'mob1087_Leave')
RegisterUnitEvent(1087, 3, 'mob1087_Kill')
RegisterUnitEvent(1087, 4, 'mob1087_Die')
